package com.zjinyin.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Message {
    private Long id;

    @ApiModelProperty("发送者, 关联用户编号")
    private Long postUserId;

    @ApiModelProperty("接受者, 关联用户编号")
    private Long receiveUserId;

    @ApiModelProperty("发送的内容")
    private String content;

    @ApiModelProperty("消息状态")
    private Byte state;

    private Byte deleteState;

    @ApiModelProperty("发送消息时间")
    private Date createTime;

    @ApiModelProperty("发送消息的更新时间")
    private Date updateTime;

    private User postUser;
}